<?php
session_start();
error_reporting(0);
if($_SESSION['username']!="")
{
?>
<!DOCTYPE html>
<html lang="en">
  <head>
     <? include "./include/head.php"; ?>
	  <? include "./include/js.php"; ?>
  </head>
  <body>
  <? include "./include/body.php"; ?>
        <div class="span9">
        <div class="hero-unit">  
        <?php
        include "./config/connection.php";
        $id_buktipengiriman = $_GET['id_buktipengiriman'];
        $perintah="SELECT * FROM bukti_pengiriman where id_buktipengiriman='".$id_buktipengiriman."'";
	$hasil=mysql_query($perintah);
	$baris=mysql_fetch_array($hasil);
	error_reporting(0);
	$input = $_GET["input"];
					if($input == "invalid")
					{
						echo"<b>Maaf ata tidak lengkap, silahkan ulangi</b>" ;
					}
					
					 
	?>
	 <form class="form-horizontal" action="delivery_expense_process_edit.php" method="post">
            <fieldset>
             
                <div class="control-group">
                  <label class="control-label" for="input01">Id Pegiriman </label>
                    <div class="controls">
                        <input type="text" class="input-xxlarge" name="id_buktipengiriman" size="30"  value="<?php echo "$baris[id_buktipengiriman]";?>">
                        <p class="help-block"></p>
                    </div>
                  <label class="control-label" for="input011">Id Pemesanan</label>
                    <div class="controls">
                        <input type="text" name="id_pemesanan" class="input-xxlarge" value="<?php echo "$baris[id_orders]";?>">
                        <p class="help-block"></p>
                    </div>
                  <label class="control-label" >Foto</label>
                    <div class="controls">
                        <?php echo "<img src=foto/foto_pengiriman/$baris[foto]>";?>
                        <p class="help-block"></p>
                    </div>
                 
						
                  

                  
                </div>
                
            </fieldset>
        </form>
            
            
          </div>
          </div><!--/row-->

         
            </div><!--/span-->
          </div><!--/row-->
        </div><!--/span-->
      </div><!--/row-->

      <hr>

 <? include "./include/menubawah.php"; ?>
    <?php
    
    ?>
  </body>
</html>
<?php
    }
else {
    include 'warning.php';
}
?>